Repository navigation
fix(sync): the React Native sync merges its pull request itself - #353
Merged
Merged
Conversation
The React Native sync pushed to the target repository with a personal bot token and only opened a pull request, so every release waited for someone to merge it by hand. It also copied package.json without touching the target's lockfile: the source keeps one lockfile for the whole monorepo, so a new dependency failed the target's immutable install. The sync now takes a GitHub App token, brings the target lockfile in line with the synced package.json, and opens the pull request through the shared create action, which merges it at once. The target repository is an input rather than written into the workflow. The token is created first, so an app without access to the target fails every run rather than only a release that has changes. The shared action now names the repository when it merges. It passed a bare number, which gh resolves against the checkout in the working directory; in the React Native job that is the source repository, not the target the pull request was opened in.
Xyzcancer
force-pushed
the
fix/rn-mirror-automerge
branch
from
September 30, 2026 14:53
32271f8 to
7a118dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pull-request/createaction, which merges it at once.yarn install --mode=update-lockfilein the target: the source keeps one monorepo lockfile, so new dependencies used to fail the target's immutable install.targetRepository) instead of being written into the workflow.--repotogh pr merge; a bare number resolved against the source checkout in the React Native job.Callers pass
targetRepository,appIdandappSecretinstead oftoken. The app must be installed on the target repository.